package com.haibei.adapter.bean;

import com.common.bean.IBeanInterface;
import com.common.uitl.Tool;
import com.haibei.net.NetInterface;

public class ContentItem implements IBeanInterface{
	private String content;
	private boolean isImg = true;

	public ContentItem(String content) {
		isImg = Tool.isImgUrl(content);
		if (isImg && !content.startsWith("http")) {
			this.content = NetInterface.warpImgUrl(content);
		} else {
			this.content = content;
		}
	}

	public String getContent() {
		return content;
	}

	public boolean isImg() {
		return isImg;
	}

	public void setImg(boolean isImg) {
		this.isImg = isImg;
	}

}